package com.myzl.common.enums;

import com.myzl.common.constant.ProtocolConstants;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 传感器枚举
 *
 * @author Administrator
 * @date 2023年6月16日10:13:03
 */
@Getter
@AllArgsConstructor
public enum SensorEnum {
    MOTOR_SET(40000, "电机启停", 1,ProtocolConstants.DATATYPE_INT,""),
    MOTOR_PLC_STATUS(40001, "PLC远程状态", 1,ProtocolConstants.DATATYPE_INT,""),
    MOTOR_RUN_STATUS(40002, "运行状态", 1,ProtocolConstants.DATATYPE_INT,""),
    MOTOR_STATUS(40003, "故障状态", 1,ProtocolConstants.DATATYPE_INT,""),
    X_AXIS_SPEED(40004, "振动筛X轴振动加速度", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_SPEED),
    Y_AXIS_SPEED(40005, "振动筛Y轴振动加速度", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_SPEED),
    Z_AXIS_SPEED(40006, "振动筛Z轴振动加速度", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_SPEED),
    X_AXIS_SHIFT(40007, "振动筛X轴振动位移", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_SHIFT),
    Y_AXIS_SHIFT(40008, "振动筛Y轴振动位移", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_SHIFT),
    Z_AXIS_SHIFT(40009, "振动筛Z轴振动位移", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_SHIFT),
    X_AXIS_RATE(40010, "振动筛X轴振动频率", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_RATE),
    Y_AXIS_RATE(40011, "振动筛Y轴振动频率", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_RATE),
    Z_AXIS_RATE(40012, "振动筛Z轴振动频率", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_RATE),
    X_AXIS_DEGREE(40013, "振动筛X轴角度振动角度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_DEGREE),
    Y_AXIS_DEGREE(40015, "振动筛Y轴角度振动角度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_DEGREE),
    Z_AXIS_DEGREE(40017, "振动筛Z轴角度振动角度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_DEGREE),
    SPRING_1_SPEED(40019, "弹簧1加速度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_ACCELERATION),
    SPRING_2_SPEED(40021, "弹簧2加速度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_ACCELERATION),
    SPRING_3_SPEED(40023, "弹簧3加速度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_ACCELERATION),
    SPRING_4_SPEED(40025, "弹簧4加速度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_ACCELERATION),
    CURRENT(40027, "电机电流", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_CURRENT),
    POWER(40029, "功率", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_POWER),
    ACCUMULATED_POWER(40031, "电机累计电量", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_POWER),
    MOTOR_TEMPERATURE(40033, "电机温度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_TEMPERATURE),
    EXCITER_TEMPERATURE(40035, "传动轴温度", 2,ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_TEMPERATURE),
    EXCITER_SPEED(40037, "激振器加速度", 2, ProtocolConstants.DATATYPE_FLOAT,ProtocolConstants.UNIT_ACCELERATION),
    RESERVE_1(40039, "预留", 1, ProtocolConstants.DATATYPE_INT,""),
    MOTOR_TEMPERATURE_POLICE(40040, "电机温度报警", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_TEMPERATURE),
    EXCITER_TEMPERATURE_POLICE(40041, "传动轴温度报警", 1,ProtocolConstants.DATATYPE_INT,ProtocolConstants.UNIT_TEMPERATURE),
    RESERVE_2(40042, "预留", 8,ProtocolConstants.DATATYPE_INT,""),
    MOTOR_TEMPERATURE_POLICE_LOW(40050, "电机温度阈值最低值", 2,ProtocolConstants.DATATYPE_FLOAT,""),
    MOTOR_TEMPERATURE_POLICE_HIGH(40052, "电机温度阈值最高值", 2,ProtocolConstants.DATATYPE_FLOAT,""),
    EXCITER_TEMPERATURE_POLICE_LOW(40054, "传动轴温度阈值最低值", 2,ProtocolConstants.DATATYPE_FLOAT,""),
    EXCITER_TEMPERATURE_POLICE_HIGH(40056, "传动轴温度阈值最高值", 2,ProtocolConstants.DATATYPE_FLOAT,""),
    ;

    private int address;
    private String info;
    private int number;
    private String dataType;
    private String unit;
}
